home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
utility
/
264
/
man
/
uniq.man
< prev
Wrap
Text File
|
1988-06-17
|
2KB
|
67 lines
UNIQ ST-UNIX User's Manual UNIQ
COMMAND
uniq - display duplicate lines in a file.
FORMAT
uniq [ -udc [ +n ] [ -n ] ] [ input [ output ] ]
DESCRIPTION
_✓U_✓n_✓i_✓q reads the input file (defaul standard input), comparing
adjacent lines. Normally the second and succeeding copies
of repeated lines are removed with the rest written to the
output file (default standard output). Repeated lines must
be adjacent in order to be found. The -u option causes just
the unrepeated lines to be output. The -d option causes
just one copy of the repeated lines be output. The default
action is -ud
The -c option over-rides -u and -d generating output in the
default format with each line labelled with a count of the
number of times it occurred.
The -_✓n argument causes the first n fields of the line to be
skipped before comparison starts. The +_✓n argument causes
the first n characters of the field to be skipped, where
fields are skipped first. Fields are defined as being
separated by white space.
Printed 28/March/1988 30 March 1987 1